/**
 * Created by Administrator on 2016/5/7.
 */

// 获取http module
var http = require('http');
http.createServer(function (req, resp) {
    // 从request中读取数据被写入resp
    req.pipe(resp);
}).listen(8080);